package cn.zhy.basic.mapper;

import cn.zhy.basic.query.BaseQuery;


import java.util.List;

public interface BaseMapper<T> {

List<T> loadAll(); //查询所有147
T loadById(Long id);//查询单个
void save(T t);//添加
void remove(Long id);           //移除
void update(T t);//修改
Long queryCount(BaseQuery baseQuery);//查询总数量
    List<T> queryData(BaseQuery baseQuery);//查询当前页数据

    void patchDelete(List<Long> ids);//批量删除



}
